package com.solotiger.okex.config;

import com.solotiger.okex.api.OkexApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import retrofit2.Retrofit;

/**
 * Api配置
 */
@Configuration
public class OkexApiConfig {
    @Autowired
    private Retrofit retrofit;

    /**
     * API
     *
     * @return
     */
    @Bean
    public OkexApi getLWM2MApi() {
        return retrofit.create(OkexApi.class);
    }
}
